<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页实例</title>
    <link rel="stylesheet" href="css.css">
</head>
<body>
    <!-- 顶部广告 -->
    <div class="top-ad">
        <div class="ad-content">
            <h1>顶部广告</h1>
            <div class="html-code">
                <img src="img/image2.jpg" alt="">
            </div>
        </div>
        <button class="close-ad">×</button>
    </div>

    <!-- 导航条 -->
    <nav class="navigation-bar">
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">新闻</a></li>
            <li><a href="#">产品</a></li>
            <li><a href="#">服务</a></li>
            <li><a href="#">关于我们</a></li>
        </ul>
    </nav>

    <!-- 轮播图 -->
    <div class="carousel">
        <div class="carousel-inner">
            <div class="carousel-item active">
                <img width="1200" src="img/image1.jpg" alt="轮播图1">
            </div>
            <div class="carousel-item">
                <img width="1200" src="img/image2.jpg" alt="轮播图2">
            </div>
            <div class="carousel-item">
                <img width="1200" src="img/image3.jpg" alt="轮播图3">
            </div>
        </div>
        <div class="carousel-controls">
            <button class="prev">‹</button>
            <button class="next">›</button>
        </div>
        <div class="carousel-indicators">
            <span class="active"></span>
            <span></span>
            <span></span>
        </div>
    </div>

    <!-- 最新热点 -->
    <section class="hot-news">
        <h2>最新热点</h2>
        <div class="html-code">
            <p>&lt;html&gt;</p>
        </div>
        <div class="news-grid">
            <article class="news-item">
                <img src="https://via.placeholder.com/300x200" alt="新闻1">
                <h3>热点新闻标题1</h3>
                <p>这里是热点新闻的简要描述内容...</p>
            </article>
            <article class="news-item">
                <img src="https://via.placeholder.com/300x200" alt="新闻2">
                <h3>热点新闻标题2</h3>
                <p>这里是热点新闻的简要描述内容...</p>
            </article>
            <article class="news-item">
                <img src="https://via.placeholder.com/300x200" alt="新闻3">
                <h3>热点新闻标题3</h3>
                <p>这里是热点新闻的简要描述内容...</p>
            </article>
        </div>
    </section>

    <script src="js.js"></script>
</body>
</html>